﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp.Demos.SimplePipeline
{
    public interface IApplicationBuilderByCustom
    {
        // 将所有的中间件按照注册的顺序组装成一个 RequestDelegate 对象
        RequestDelegateByCustom Build();

        // 注册中间件
        IApplicationBuilderByCustom UseByCustom(Func<RequestDelegateByCustom, RequestDelegateByCustom> middleware);
    }
}
